//
//  HMTempViewController.swift
//  Weibo12
//
//  Created by HM on 15/12/26.
//  Copyright © 2015年 itheima. All rights reserved.
//

import UIKit

class HMTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.backgroundColor = UIColor.whiteColor()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: "push")
        
        title = "当前是第\(navigationController?.childViewControllers.count ?? 0)级控制器"
    }
    
    @objc private func push(){
        let vc = HMTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    }

}
